﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;

namespace UnityTemplate.Repository
{
    /// <summary>
    /// Api url角色授权
    /// </summary>
    [SugarTable("t_role_api_permission")]
    public class RoleApiPermission : BaseDataTable
    {
        public long Id { get; set; }

        public string ActionName { get; set; }
      
        /// <summary>
        /// 授权角色ID
        /// </summary>
        public long RoleId { get; set; }

        /// <summary>
        /// API接口地址
        /// </summary>
        public long ApiUrlId { get; set; }

        /// <summary>
        /// 过期时间
        /// </summary>
        public DateTime ExpireTime { get; set; }

        [SugarColumn(IsIgnore = true)]
        public ApiUrlModel ApiUrl { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDeleted { get; set; }
    }
}
